package net.weitalk.patterns.visitor.stage2;

import java.util.List;

public class ToolApplication {
    public static void main(String[] args) {
        List<ResourceFile> resourceFiles = List.of(
                new PdfFile("a.pdf"), new PPTFile("b.ppt"), new WordFile("c.doc")
        );
        Extractor extractor = new Extractor();
        for (var file : resourceFiles) {
            file.accept(extractor);
        }
    }
}
